//@author A0096566M
#include "mainwindow.h"
#include <QApplication>
#include <QObject>
#include "SystemKeyboardReadWrite.h"
#include "main.h"
#include "logger.hpp"

loglevel_enum loglevel = LOG_INFO;

int main(int argc, char *argv[])
{
    freopen("log.txt", "a", stderr);
    log(LOG_DEBUG) << "Starting program in Debug Mode";
    log(LOG_DEBUG) << "log redirected to log.txt";

    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    /*
    QObject* keys;
    keys = new Key();
    QCoreApplication::instance()->installEventFilter(keys);
    */

    return a.exec();
}

